projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc22325
)
GtkHeaderBar: Fix a corner-case in child properties
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 2 Nov 2014 22:46:35 +0000
(17:46 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 2 Nov 2014 22:49:47 +0000
(17:49 -0500)
The child property setting must be prepared to deal with any
child property for any child, even if it doesn't make sense,
like the pack-type for the custom title. This is happening
in glade when undoing a change in the custom-title property.
gtk/gtkheaderbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkheaderbar.c
b/gtk/gtkheaderbar.c
index 2dd8deeaf668bd4f2ddb3f93a855d9861166718a..540a461df3fc376ea09cbd564288688a33ab3797 100644
(file)
--- a/
gtk/gtkheaderbar.c
+++ b/
gtk/gtkheaderbar.c
@@
-1650,6
+1650,9
@@
gtk_header_bar_set_child_property (GtkContainer *container,
Child *child;
l = find_child_link (bar, widget);
+ if (l == NULL)
+ return;
+
child = l->data;
switch (property_id)